package tmproject.hlhj.fhp.cartrans

import android.content.Context
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
import android.view.ViewGroup
import java.util.ArrayList

/**
 * Created by Administrator on 2018/8/26/026.
 */
class HomePagerAdp(private val fgmLists:ArrayList<Fragment>,private val fm:FragmentManager) :FragmentPagerAdapter(fm) {
    override fun getItem(position: Int): Fragment {
        return fgmLists[position]
    }

    override fun getCount(): Int {
        return fgmLists.size
    }

    override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) {
//        super.destroyItem(container, position, `object`)
    }
    override fun instantiateItem(container: ViewGroup, position: Int): Any {
        return super.instantiateItem(container, position)
    }
}